<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>安装第一步</title>
    {sys:load href='install.css,admin/lib/layui/css/layui.css'}
</head>
<body>
    <div class="content">
        <h3>环境检测</h3>
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>项目</th>
                <th>当前环境</th>
                <th>要求环境</th>
                <th>检测结果</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>PHP版本</td>
                <td>{:PHP_VERSION}</td>
                <td>7.1以上</td>
                <td>{:version_compare(PHP_VERSION,'7.1.0','<') ? '必须7.1以上' : '通过'}</td>
            </tr>
            <tr>
                <td>openssl</td>
                <td>{:defined('OPENSSL_VERSION_TEXT') ? OPENSSL_VERSION_TEXT : '未安装openssl'}</td>
                <td>需要</td>
                <td>{:defined('OPENSSL_VERSION_TEXT') ? OPENSSL_VERSION_TEXT : '未安装openssl'}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="content">
        <h3>数据库配置</h3>
        <hr/>
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">MYSQL地址</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">数据库名</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">数据库用户</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">数据库密码</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <hr />

            <h3>管理员配置</h3>

            <hr/>
            <div class="layui-form-item">
                <label class="layui-form-label">管理员手机号</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">登陆密码</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">开始安装</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>